package com.budwk.app.sqfwV2.dto.vo;

import com.budwk.app.sqfw.constants.CommonConstants;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class HouseInfoResVo {


    @ApiModelProperty(description = "所有的房屋")
    private List<Houses> houses;

    @ApiModelProperty(description = "楼栋表id")
    private String buildingId;

    @ApiModelProperty(description = "是否有隐患 默认没有隐患")
    private String houseRisks = CommonConstants.NO_CHINA;

    @ApiModelProperty(description = "是否已采集 默认没采集")
    private String isFill = CommonConstants.NO_CHINA;

    @ApiModelProperty(description = "是否有夹层 默认没采集")
    private String isLoft = CommonConstants.NO_CHINA;


    @Data
    @Accessors(chain = true)
    public static class Houses {

        private String unitName;

        private List<Units> units;

        private String hasDanger = CommonConstants.NO_CHINA; // 是否有隐患 默认没有隐患

        private String isFill = CommonConstants.NO_CHINA; // 是否已采集 默认没采集
    }

    @Data
    @Accessors(chain = true)
    public static class Units {

        private String floorName; // 楼层名称

        private List<Rooms> rooms; // 房间号
    }

    @Data
    @Accessors(chain = true)
    public static class Rooms {

        private String houseId; // 房间id

        private String rooms; // 房间号

        private String houseRoom; // 房间尾号

        private String houseRisks; // 是否有隐患

        private String isFill; // 是否已采集

        private String isLoft; // 是否有夹层

        private String address; // 地址

    }

}
